projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f333ae7
)
async-progress: Plug memory leak while destroying GSource
author
Umang Jain
<uajain@localhost.localdomain>
Fri, 25 Oct 2019 15:28:34 +0000
(20:58 +0530)
committer
Umang Jain
<mailumangjain@gmail.com>
Fri, 25 Oct 2019 15:29:15 +0000
(20:59 +0530)
See https://gitlab.gnome.org/GNOME/glib/commit/
71973c722
src/libostree/ostree-async-progress.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-async-progress.c
b/src/libostree/ostree-async-progress.c
index a8e629eea703bff8a51ca47bdecd97ab06b86ba2..64372c271c0cafae7bfa4915fb22f992c3fbc556 100644
(file)
--- a/
src/libostree/ostree-async-progress.c
+++ b/
src/libostree/ostree-async-progress.c
@@
-465,7
+465,7
@@
ostree_async_progress_finish (OstreeAsyncProgress *self)
if (self->idle_source)
{
g_source_destroy (self->idle_source);
-
self->idle_source = NULL
;
+
g_clear_pointer (&self->idle_source, g_source_unref)
;
emit_changed = TRUE;
}
}